﻿namespace YunQue.DataBase.Configuration.System
{
    /// <summary>
    /// 权限实体配置
    /// </summary>
    public class PermissionEntityConfiguration: BaseEntityConfiguration<PermissionEntity>
    {
        /// <summary>
        /// 配置
        /// </summary>
        /// <param name="builder"></param>
        public override void Configure(EntityTypeBuilder<PermissionEntity> builder)
        {
            base.Configure(builder);
            builder.ToTable("permission");
            builder.Property(u => u.Code).HasColumnName("code").HasColumnType("varchar").HasMaxLength(100).HasComment("编码").IsRequired();
            builder.Property(u => u.Name).HasColumnName("name").HasColumnType("varchar").HasMaxLength(100).HasComment("名字").IsRequired();
        }
    }
}
